//
//  MPCompanyTaskModel.h
//  MarkPlatform
//
//  Created by xiao6 on 2018/1/3.
//  Copyright © 2018年 AT. All rights reserved.
//

#import "BaseModel.h"
#import "MPCompanyTaskStep.h"

// 状态代码(0:草稿,1:即将开始,2:进行中,3:已暂停,4:已结束)
typedef NS_ENUM(NSInteger, MPCompanyTaskStatus) {
    MPCompanyTaskStatusDraf = 0,
    MPCompanyTaskStatusStart,
    MPCompanyTaskStatusProgressing,
    MPCompanyTaskStatusPause,
    MPCompanyTaskStatusFinish,
};
@interface MPCompanyTaskModel : BaseModel
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *Id;
@property (nonatomic, assign) BOOL cancel;
@property (nonatomic, assign) BOOL stop;
@property (nonatomic, assign) BOOL restart;
@property (nonatomic, strong) NSArray<MPCompanyTaskStep *> *step;
@property (nonatomic, assign) NSTimeInterval endTime;// 结束时间
@property (nonatomic, assign) NSInteger percent;
@property (nonatomic, assign) NSInteger quantity;
@property (nonatomic, assign) MPCompanyTaskStatus status;
@property (nonatomic, copy) NSString *statusName;
@property (nonatomic, assign) double imgPrice;
@property (nonatomic, assign) double price;

@end
